# coding:utf-8


class Task_Monkey(object):
    task_name = "task_name"
    mi_account_name = "mi_account_name"

    monkey = "monkey"
    build = "build"

    pct_syskeys = "pct_syskeys"
    pct_nav = "pct_nav"
    pct_touch = "pct_touch"
    pct_appswitch = "pct_appswitch"
    pct_motion = "pct_motion"
    pct_anyevent = "pct_anyevent"
    pct_trackball = "pct_trackball"
    pct_majornav = "pct_majornav"
    seed = "seed"
    throttle = "throttle"
    loglevel = "loglevel"
    package = "package"
    eventsnumber = "eventsnumber"
    errhandler = "errhandler"

    device = "device"
    version = "version"
    area = "area"

    execpolicy = "execpolicy"
    weekdays = "weekdays"
    iter_time = "iter_time"
    point_time = "point_time"
    long_time = "long_time"


class Task_In_Redis(object):
    sn = 'sn'
    product_name = 'product_name'
    product_name_cn = 'product_name_cn'
    version = 'version'
    area = 'area'
    build_if = 'build_if'
    monkey_test_if = 'monkey_test_if'
    monkey_cmd = 'monkey_cmd'
    times = 'times'
    execpolicy = 'execpolicy'
    weekdays = 'weekdays'
    iter_time = 'iter_time'
    long_time = 'long_time'
    point_time = 'point_time'
    task_name = "task_name"
    sub_task_name = 'sub_task_name'
    mi_account_name = 'mi_account_name'
    result_dir = 'result_dir'

    data_structure_of_monkey_task = ['sn', 'product_name', 'version', 'area', 'build_if', 'monkey_test_if',
                                     'monkey_cmd', 'times', 'execpolicy', 'weekdays', 'iter_time',
                                     'long_time', 'point_time', 'product_name_cn', 'task_name', 'sub_task_name',
                                     'mi_account_name', 'result_dir']

    monkey_task_exec = ['sn', 'product_name', 'version', 'area', 'build_if', 'monkey_test_if',
                        'monkey_cmd', 'times', 'execpolicy', 'weekdays', 'iter_time', 'long_time',
                        'point_time']

    next_task_if = ['execpolicy', 'weekdays', 'iter_time', 'long_time', 'point_time']
